package org.fkit.domain;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;
import org.springframework.format.annotation.NumberFormat.Style;

import lombok.Data;

/**
 * @Description: <br>
 *               网站：<a href="http://www.fkit.org">疯狂Java</a>
 * @author 肖文吉 36750064@qq.com
 * @version V1.0
 */
// 域对象，实现序列化接口
@Data
public class User implements Serializable
{
    // 日期类型
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    
    // 正常数字类型
    @NumberFormat(style = Style.NUMBER, pattern = "#,###")
    private int total;
    
    // 百分数类型
    @NumberFormat(style = Style.PERCENT)
    private double discount;
    
    // 货币类型
    @NumberFormat(style = Style.CURRENCY)
    private double money;
    
    public User()
    {
        super();
    }
}
